package com.example.tests;

import static org.hamcrest.MatcherAssert.*;
import static org.hamcrest.Matchers.*;

import org.testng.annotations.Test;

import com.example.fw.Folders;

public class TestFolderDeletion extends TestBase {

	@Test
	public void testFolderDeletion() {
		int index = 1;
		
		Folders oldFolders = app.getFolderHelper().getFolders();
		app.getFolderHelper().deleteFolder(index);
		Folders newFolders = app.getFolderHelper().getFolders();
		assertThat(newFolders,equalTo(oldFolders.without(index)));
	}
	
}
